Import("*")
cppdefines = []

if env.test_lib == 'iguana':
    env["EXPECT_TEST_DATA"] = [("100%: Checks: 41, Failures: 0, Errors: 0", None)]

if (args.get("restrict_vm", False)):
    cppdefines.append(("CONFIG_RESTRICTED_VM", 1))
if (args.get("lowmemory", False)):
    cppdefines.append(("CONFIG_LOWMEMORY", 1))

env.Append(CPPDEFINES = cppdefines);
lib = env.KengeLibrary("iguana", LIBS=["c", "l4", "circular_buffer", "range_fl", "ll", "l4e", "mutex"])

Return("lib")
